<?php
	//include("DefineConst/DefineConst.php");
	class user
	{
		//fields
		public $user_id; 
		public $username;
		public $email;
		public $loginname;
		public $password;
		public $avatarURL;
		public $position_id;
		public $key_id;
		//function
		public function print_user(user $user)
		{
			echo $user->id."<br>";
			echo $user->name;
			return 0;
		}
		
		public function sendmail($to,$subject,$message)
		{
			//$to = "luonghuynh90@yahoo.com;luong.huynh@pine-entertainment.com";
			//$subject = "Test mail";
			//$message = "Hello! This is a simple email message.";
			$from = "luonghuynh90@yahoo.com";
			$headers = "From:" . $from;
			mail($to,$subject,$message,$headers);
			echo "Mail Sent.";
		}
	}
	
?>